package model

import (
    "gonaio_base/constant"
    "gonaio_base/model"
)

type User struct {
    bmodel.Base
    Username string `gorm:"type:varchar(32);comment:'用户名'"`
    Password string `gorm:"type:varchar(255);comment:'密码'"`
    Name     string `gorm:"type:varchar(16);comment:'姓名'"`
    Sex      int64  `gorm:"comment:'性别'"`
    Age      int64  `gorm:"comment:'年龄'"`
}

func (User) TableName() string {
    return "dry_user"
}

func (User) Alias() string {
    return bconstant.THE_MYSQL_DEFAULT
}
